package com.example.newbook;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan(basePackages = "com.example.newbook.mapper") // 通过使用@MapperScan可以指定要扫描的Mapper类的包的路径
@EnableTransactionManagement
public class NewbookApplication {

    public static void main(String[] args) {
        SpringApplication.run(NewbookApplication.class, args);
    }

}
